
/**
 * Universidad del Valle de Guatemala
 * Algoritmos y estructura de datos
 * @author Julio R. Chicas Sett
 * Carne: 07470
 * Programa: Vertice
 * Descripcion: Vertice del grafo
 */




public class Vertice implements Comparable<Vertice>{

    public final String name;
    public Nodo[] adjacencies;
    public double minDistance = Double.POSITIVE_INFINITY;
    public Vertice previous;
    public Vertice(String argName) { name = argName; }
    public String toString() { return name; }
    public int compareTo(Vertice other)
    {
        return Double.compare(minDistance, other.minDistance);
    }


}